// service/recharger/recharger.js
const app = getApp();
import http from "../../utils/http";
import util from "../../utils/util";
Page({
	/**
	 * 页面的初始数据
	 */
	data: {
		active: 0, // 当前选中的标签
		allList: [
			{
				icon: "../../static/index/allstar.png",
				title: "购物送京豆",
				time: "2024-10-29 08:52:15",
				amount: 6,
			},
			{
				icon: "../../static/index/allstar.png",
				title: "购物送京豆",
				time: "2024-06-26 09:33:46",
				amount: 3,
			},
			{
				icon: "../../static/index/allstar.png",

				title: "订单退京豆",
				time: "2024-06-11 14:43:42",
				amount: 425,
			},
			{
				icon: "../../static/index/allstar.png",

				title: "使用京豆",
				time: "2024-06-11 14:43:42",
				amount: -531,
			},
			{
				icon: "../../static/index/allstar.png",

				title: "使用京豆",
				time: "2024-06-11 14:43:42",
				amount: -531,
			},
			{
				icon: "../../static/index/allstar.png",

				title: "使用京豆",
				time: "2024-06-11 14:43:42",
				amount: -531,
			},
			{
				icon: "../../static/index/allstar.png",

				title: "使用京豆",
				time: "2024-06-11 14:43:42",
				amount: -531,
			},

			{
				icon: "../../static/index/allstar.png",

				title: "使用京豆",
				time: "2024-06-11 14:43:42",
				amount: -531,
			},
			{
				icon: "../../static/index/allstar.png",

				title: "使用京豆",
				time: "2024-06-11 14:43:42",
				amount: -531,
			},
			{
				icon: "../../static/index/allstar.png",

				title: "使用京豆",
				time: "2024-06-11 14:43:42",
				amount: -531,
			},
			{
				icon: "../../static/index/allstar.png",

				title: "使用京豆",
				time: "2024-06-11 14:43:42",
				amount: -531,
			},
			{
				icon: "../../static/index/allstar.png",

				title: "使用京豆",
				time: "2024-06-11 14:43:42",
				amount: -531,
			},
			{
				icon: "../../static/index/allstar.png",

				title: "使用京豆",
				time: "2024-06-11 14:43:42",
				amount: -531,
			},

			{
				icon: "../../static/index/allstar.png",

				title: "使用京豆",
				time: "2024-06-11 14:43:42",
				amount: -531,
			},
		],
		// receivedList: [
		// 	{
		// 		icon: "../../static/icons/coin.png",
		// 		title: "购物送京豆",
		// 		time: "2024-10-29 08:52:15",
		// 		amount: 6,
		// 	},
		// 	{
		// 		icon: "../../static/icons/coin.png",
		// 		title: "购物送京豆",
		// 		time: "2024-06-26 09:33:46",
		// 		amount: 3,
		// 	},
		// ],
		// spentList: [
		// 	{
		// 		icon: "../../static/icons/coin.png",
		// 		title: "使用京豆",
		// 		time: "2024-06-11 14:43:42",
		// 		amount: -531,
		// 	},
		// ],
	},

	onTabChange(event) {
		this.setData({ active: event.detail.index });
	},
});
